package com.uniriho.lxr0811_7300_bl.ui.activity

import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import androidx.navigation.ui.setupWithNavController
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.uniriho.lxr0811_7300_bl.R
import com.uniriho.lxr0811_7300_bl.databinding.ActivityHomeBinding

class HomeActivity : AppCompatActivity() {

    private lateinit var homeBinding: ActivityHomeBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        homeBinding = ActivityHomeBinding.inflate(layoutInflater)
        setContentView(homeBinding.root)

        initView()
        initData()
        initEvent()



        // Passing each menu ID as a set of Ids because each
        // menu should be considered as top level destinations.
//        val appBarConfiguration = AppBarConfiguration(
//            setOf(
//                R.id.navigation_Sam, R.id.navigation_UHF, R.id.navigation_FingerInput,R.id.navigation_SystemInfo
//            )
//        )
//        setupActionBarWithNavController(navController, appBarConfiguration)

    }

    private fun initEvent() {

    }

    private fun initData() {


    }

    private fun initView() {
        val navView: BottomNavigationView = homeBinding.navView
        navView.itemIconTintList = null
        val navController = findNavController(R.id.nav_host_fragment_activity_main)
        navView.setupWithNavController(navController)

    }
}